]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - findcmd.c
Imported from ../bash-3.2.48.tar.gz.
[thirdparty/bash.git] / findcmd.c
index 6f5ff8584a607d4a1fd76f3cb6664f44a22d9107..27720f8aa8b3d78e461e17e4bb1b701ca803130f 100644 (file)
--- a/findcmd.c
+++ b/findcmd.c
@@ -308,7 +308,7 @@ search_for_command (pathname)
   if (hashed_file && (posixly_correct || check_hashed_filenames))
     {
       st = file_status (hashed_file);
-      if ((st ^ (FS_EXISTS | FS_EXECABLE)) != 0)
+      if ((st & (FS_EXISTS|FS_EXECABLE)) != (FS_EXISTS|FS_EXECABLE))
        {
          phash_remove (pathname);
          free (hashed_file);