MCPcopy Create free account
hub / github.com/coreutils/coreutils / fchmod_or_lchmod

Function fchmod_or_lchmod

src/copy.c:446–454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

444 available, DIRFD+NAME otherwise. */
445
446static int
447fchmod_or_lchmod (int desc, int dirfd, char const *name, mode_t mode)
448{
449#if HAVE_FCHMOD
450 if (0 <= desc)
451 return fchmod (desc, mode);
452#endif
453 return lchmodat (dirfd, name, mode);
454}
455
456/* Change the ownership of the file identified by DESC or
457 DIRFD+NAME to UID+GID. Use DESC if DESC is valid and fchown is

Callers 1

copy_regFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected