mirror of
https://github.com/darlinghq/darling-file_cmds.git
synced 2024-11-23 11:39:40 +00:00
Restore Darling Specific Changes
This commit is contained in:
parent
390e64e423
commit
d2bf69235e
@ -84,6 +84,11 @@ const char *gname;
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
#ifdef DARLING
|
||||
// file ownership is pretty much a no-op under Darling at the moment,
|
||||
// so let's just silently pretend that chown/chgrp always succeeds
|
||||
return 0;
|
||||
#else
|
||||
FTS *ftsp;
|
||||
FTSENT *p;
|
||||
int Hflag, Lflag, Pflag, Rflag, fflag, hflag, vflag;
|
||||
@ -248,6 +253,7 @@ main(int argc, char **argv)
|
||||
if (errno)
|
||||
err(1, "fts_read");
|
||||
exit(rval);
|
||||
#endif // DARLING
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -203,6 +203,9 @@ int opt_add(const char *);
|
||||
int bad_opt(void);
|
||||
int pax_format_opt_add(char *);
|
||||
int pax_opt(void);
|
||||
#ifdef DARLING
|
||||
extern
|
||||
#endif
|
||||
char *chdname;
|
||||
|
||||
/*
|
||||
|
@ -161,6 +161,10 @@ int ford[] = {F_PAX, F_TAR, F_OTAR, F_CPIO, F_SCPIO, F_ACPIO, F_OCPIO, -1 };
|
||||
*/
|
||||
int havechd = 0;
|
||||
|
||||
#ifdef DARLING
|
||||
char* chdname = NULL;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* options()
|
||||
* figure out if we are pax, tar or cpio. Call the appropriate options
|
||||
|
Loading…
Reference in New Issue
Block a user