1
0
Fork 0
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:
Jonas 'Sortie' Termansen 2014-09-08 17:42:38 +02:00
parent fb8221a381
commit 0dc951b94e

View file

@ -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':