* src/sort.c (create_temp): Remove superfluous access-X_OK
authorDan Hipschman <dsh@linux.ucla.edu>
Thu, 25 Jan 2007 20:56:32 +0000 (21:56 +0100)
committerJim Meyering <jim@meyering.net>
Thu, 25 Jan 2007 20:56:32 +0000 (21:56 +0100)
check.  find_in_path does this for us.

ChangeLog
src/sort.c

index 10e5f3e23b4fc8d5d5e44f92d5e96d32d7ad4706..666fd96789af997f766be5c074d84db6049d2b9e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-01-25  Dan Hipschman  <dsh@linux.ucla.edu>
+
+       * src/sort.c (create_temp): Remove superfluous access-X_OK
+       check.  find_in_path does this for us.
+
 2007-01-24  Jim Meyering  <jim@meyering.net>
 
        Remove usually-skipped test.
index bab232b74c5213d1d25e257b2fc63aa074ca4b06..c7ae0c8c0f884aa08921af9d42540fb7be8e5549 100644 (file)
@@ -853,12 +853,7 @@ create_temp (FILE **pfp, pid_t *ppid)
          const char *path_program = find_in_path (default_program);
 
          if (path_program != default_program)
-           {
-             if (access (path_program, X_OK) == 0)
-               compress_program = path_program;
-             else
-               free ((char *) path_program);
-           }
+           compress_program = path_program;
        }
       else if (*compress_program == '\0')
        compress_program = NULL;