#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>
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];
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