diff options
author | Dan Hipschman <dsh@linux.ucla.edu> | 2007-01-25 21:56:32 +0100 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2007-01-25 21:56:32 +0100 |
commit | 2d2a0c83116316f438ec8ca63f6860a0f4622b40 (patch) | |
tree | b6e371fc7a9f3b6bbf035e33e936ee3d41d61d44 | |
parent | 11b626c20fbc65c668081996bfb9d1118f475eda (diff) | |
download | coreutils-2d2a0c83116316f438ec8ca63f6860a0f4622b40.tar.xz |
* src/sort.c (create_temp): Remove superfluous access-X_OK
check. find_in_path does this for us.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/sort.c | 7 |
2 files changed, 6 insertions, 6 deletions
@@ -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. diff --git a/src/sort.c b/src/sort.c index bab232b74..c7ae0c8c0 100644 --- a/src/sort.c +++ b/src/sort.c @@ -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; |