Lines 550-555
Link Here
|
550 |
} |
550 |
} |
551 |
else |
551 |
else |
552 |
{ |
552 |
{ |
|
|
553 |
//start of shell expanded * patch. -- Michael Evans |
554 |
//The shell might expaned * so, if we have our name and we're creating, then filter for files... |
555 |
if ((parfilename.length() != 0) && (operation == opCreate)) |
556 |
{ |
557 |
struct stat st; |
558 |
if (!(stat(argv[0], &st) == 0 && S_ISREG(st.st_mode))) |
559 |
{ |
560 |
cerr << "Skipping non-regular file: " << argv[0] << endl; |
561 |
argc--; |
562 |
argv++; |
563 |
options = false; |
564 |
continue; |
565 |
} |
566 |
}//end of shell expanded * patch. -- Michael Evans |
553 |
filenames = new list<string>; |
567 |
filenames = new list<string>; |
554 |
filenames->push_back(argv[0]); |
568 |
filenames->push_back(argv[0]); |
555 |
} |
569 |
} |