X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=dump%2Fmain.c;h=610410f353c0c291fac837da0a314efb1d539f27;hp=45e525bbd165632c3de8f9d34fcd363b0504df0c;hb=2be7779919f3c53ac42a5ac63c0d381e401f7587;hpb=3458b64d0f4e9c6b5bf43ba51c964bab8b716127 diff --git a/dump/main.c b/dump/main.c index 45e525b..610410f 100644 --- a/dump/main.c +++ b/dump/main.c @@ -41,7 +41,7 @@ #ifndef lint static const char rcsid[] = - "$Id: main.c,v 1.81 2003/01/21 10:42:27 stelian Exp $"; + "$Id: main.c,v 1.82 2003/03/07 09:15:50 stelian Exp $"; #endif /* not lint */ #include @@ -772,7 +772,7 @@ main(int argc, char *argv[]) if (directory[0] == 0) anydirskipped = mapfiles(maxino, &tapesize); else { - if (STAT(pathname, &statbuf) == -1) { + if (LSTAT(pathname, &statbuf) == -1) { msg("File cannot be accessed (%s).\n", pathname); msg("The ENTIRE dump is aborted.\n"); exit(X_STARTUP); @@ -789,7 +789,7 @@ main(int argc, char *argv[]) int anydirskipped2; char *p = *argv; /* check if file is available */ - if (STAT(p, &statbuf) == -1) { + if (LSTAT(p, &statbuf) == -1) { msg("File cannot be accessed (%s).\n", p); msg("The ENTIRE dump is aborted.\n"); exit(X_STARTUP);