]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
diag: say "failed to...", rather than "cannot..." in a few diagnostics
authorJim Meyering <meyering@redhat.com>
Sat, 13 Jun 2009 14:36:48 +0000 (16:36 +0200)
committerJim Meyering <meyering@redhat.com>
Sat, 13 Jun 2009 14:37:13 +0000 (16:37 +0200)
* src/chroot.c (main): ...it's more precise.
* src/nohup.c (main): Likewise.
* src/setuidgid.c (main): Likewise.
* src/timeout.c (main): Likewise.

src/chroot.c
src/nohup.c
src/setuidgid.c
src/timeout.c

index 12d282b494e779a9a44448c07c661dadc99bfed6..b773f0db61286762b399f457487cc9ee197ae4ae 100644 (file)
@@ -261,7 +261,7 @@ main (int argc, char **argv)
 
   {
     int exit_status = (errno == ENOENT ? EXIT_ENOENT : EXIT_CANNOT_INVOKE);
-    error (0, errno, _("cannot run command %s"), quote (argv[0]));
+    error (0, errno, _("failed to run command %s"), quote (argv[0]));
     exit (exit_status);
   }
 }
index 3364e9191abc1449cb6423342e80c7b91ca93299..6c9bbbf28f2ecd921218cc5177369db5504f8b56 100644 (file)
@@ -213,7 +213,7 @@ main (int argc, char **argv)
        In other words, output the diagnostic if possible, but only if
        it will go to the original stderr.  */
     if (dup2 (saved_stderr_fd, STDERR_FILENO) == STDERR_FILENO)
-      error (0, saved_errno, _("cannot run command %s"), quote (*cmd));
+      error (0, saved_errno, _("failed to run command %s"), quote (*cmd));
 
     exit (exit_status);
   }
index beff04acb3be5477c7711df53690ad588dd0b8b0..7d8ca3f2ffd0981a8022966e39ca5e4bb7fc5d29 100644 (file)
@@ -210,7 +210,7 @@ main (int argc, char **argv)
     execvp (*cmd, cmd);
     exit_status = (errno == ENOENT ? EXIT_ENOENT : EXIT_CANNOT_INVOKE);
 
-    error (0, errno, _("cannot run command %s"), quote (*cmd));
+    error (0, errno, _("failed to run command %s"), quote (*cmd));
     exit (exit_status);
   }
 }
index c79f24eb5097f8cd37f14c25a9aced8ab48cafbe..2700745fc46f981c3f3029117bf132c6a124d38a 100644 (file)
@@ -301,7 +301,7 @@ main (int argc, char **argv)
 
       /* exit like sh, env, nohup, ...  */
       exit_status = (errno == ENOENT ? EXIT_ENOENT : EXIT_CANNOT_INVOKE);
-      error (0, errno, _("cannot run command %s"), quote (argv[0]));
+      error (0, errno, _("failed to run command %s"), quote (argv[0]));
       return exit_status;
     }
   else