MCPcopy Index your code
hub / github.com/RsyncProject/rsync / do_mkdir

Function do_mkdir

syscall.c:1010–1016  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1008}
1009
1010int do_mkdir(char *path, mode_t mode)
1011{
1012 if (dry_run) return 0;
1013 RETURN_ERROR_IF_RO_OR_LO;
1014 trim_trailing_slashes(path);
1015 return mkdir(path, mode);
1016}
1017
1018/*
1019 Symlink-race-safe variant of do_mkdir() for receiver-side use. See

Callers 3

make_pathFunction · 0.85
do_mkdir_atFunction · 0.85
get_local_nameFunction · 0.85

Calls 1

trim_trailing_slashesFunction · 0.85

Tested by

no test coverage detected