diff options
author | Mark Wooding <mdw@distorted.org.uk> | 2013-01-29 23:49:38 +0000 |
---|---|---|
committer | Mark Wooding <mdw@distorted.org.uk> | 2013-01-30 00:42:09 +0000 |
commit | 1ba0145fe6fe72f63af15e12716c13071523eaa4 (patch) | |
tree | a3a22f9d15d525b10d89de7a145121dbcde000fd | |
parent | f90cb5738a194fc1b873ffc6212f3aa9a537e2fe (diff) | |
download | userv-utils-1ba0145fe6fe72f63af15e12716c13071523eaa4.tar.gz |
www-cgi/ucgitarget.c: Use `error' to report unusual filesystem object.
There's nothing useful in `errno'. Let's not end up saying `Success'
here.
-rw-r--r-- | www-cgi/ucgitarget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/www-cgi/ucgitarget.c b/www-cgi/ucgitarget.c index eb5fdab..4228951 100644 --- a/www-cgi/ucgitarget.c +++ b/www-cgi/ucgitarget.c @@ -94,7 +94,7 @@ int main(int argc, const char **argv) { if (scriptpath[scriptpathlen-1]=='~') error("bad char end"); r= stat(scriptpath,&stab); if (r) syserror("stat script"); if (S_ISREG(stab.st_mode)) break; - if (!S_ISDIR(stab.st_mode)) syserror("script not directory or file"); + if (!S_ISDIR(stab.st_mode)) error("script not directory or file"); lastslash= nextslash; } if (*nextslash) xsetenv("PATH_INFO",nextslash,1); |