* 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 10e5f3e..666fd96 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 bab232b..c7ae0c8 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;