]> git.wh0rd.org - dump.git/blobdiff - restore/main.c
a debug message removed
[dump.git] / restore / main.c
index 8368548dbc6d404e7466b490a949e3807f59adbf..ad0496816a68d42e5265ced41c83751ec56e4b02 100644 (file)
@@ -41,7 +41,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-       "$Id: main.c,v 1.29 2001/09/12 10:21:49 stelian Exp $";
+       "$Id: main.c,v 1.31 2001/11/13 12:11:42 stelian Exp $";
 #endif /* not lint */
 
 #include <config.h>
@@ -280,7 +280,7 @@ main(int argc, char *argv[])
 
        atexit(cleanup);
 
-       if (command == 'C' && inputdev[0] != '/') {
+       if (command == 'C' && inputdev[0] != '/' && strcmp(inputdev, "-")) {
                /* since we chdir into the directory we are comparing
                 * to, we must retain the full tape path */
                char wd[MAXPATHLEN], fullpathinput[MAXPATHLEN];
@@ -288,7 +288,6 @@ main(int argc, char *argv[])
                        err(1, "can't get current directory");
                snprintf(fullpathinput, MAXPATHLEN, "%s/%s", wd, inputdev);
                fullpathinput[MAXPATHLEN - 1] = '\0';
-printf("FULLPATH is %s\n", fullpathinput);
                setinput(fullpathinput);
        }
        else