]> git.cworth.org Git - tar/blobdiff - gnu/openat-proc.c
Imported Upstream version 1.24
[tar] / gnu / openat-proc.c
index e0693be38b0332a274879998d37839a572793901..9b4d9578b3227543dff965208b14a147622c1edc 100644 (file)
@@ -77,7 +77,7 @@ openat_proc_name (char buf[OPENAT_BUFFER_SIZE], int fd, char const *file)
          problem is exhibited on code that built on Solaris 8 and
          running on Solaris 10.  */
 
-      int proc_self_fd = open ("/proc/self/fd", O_RDONLY);
+      int proc_self_fd = open ("/proc/self/fd", O_SEARCH);
       if (proc_self_fd < 0)
         proc_status = -1;
       else