mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Improve cp's install(1) emulation.
This commit is contained in:
parent
fb8221a381
commit
0dc951b94e
1 changed files with 10 additions and 0 deletions
10
utils/cp.cpp
10
utils/cp.cpp
|
@ -385,6 +385,16 @@ int main(int argc, char* argv[])
|
|||
{
|
||||
while ( char c = *++arg ) switch ( c )
|
||||
{
|
||||
#ifdef CP_PRETEND_TO_BE_INSTALL
|
||||
case 'b': /* ignored */ break;
|
||||
case 'c': /* ignored */ break;
|
||||
case 'C': /* ignored */ break;
|
||||
case 'd': /* ignored */ break;
|
||||
case 'g': if ( *(arg + 1) ) arg = "g"; else if ( i + 1 != argc ) argv[++i] = NULL; break;
|
||||
case 'm': if ( *(arg + 1) ) arg = "m"; else if ( i + 1 != argc ) argv[++i] = NULL; break;
|
||||
case 'o': if ( *(arg + 1) ) arg = "o"; else if ( i + 1 != argc ) argv[++i] = NULL; break;
|
||||
case 's': /* ignored */ break;
|
||||
#endif
|
||||
case 'H': flags |= FLAG_DEREFERENCE_ARGUMENTS; break;
|
||||
case 'L': flags |= FLAG_DEREFERENCE; break;
|
||||
case 'r':
|
||||
|
|
Loading…
Reference in a new issue