Commit e97eb90e authored by rswindell's avatar rswindell
Browse files

Added import file open failure message.

parent edfc30bd
......@@ -1537,9 +1537,13 @@ int main(int argc, char **argv)
case 'I':
case 'E':
case 'N':
if(cmd[1]!=0 && cmd[1]!='-')
fp=fopen(cmd+1,"r");
else
if(cmd[1]!=0) {
if((fp=fopen(cmd+1,"r"))==NULL) {
printf("\n\7!Error %d opening %s\n"
,errno,cmd+1);
exit(1);
}
} else
fp=stdin;
i=smb_locksmbhdr(&smb);
if(i) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment