Commit 0dc951b9 authored by Jonas Termansen's avatar Jonas Termansen

Improve cp's install(1) emulation.

parent fb8221a3
......@@ -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':
......
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