search for: make_parentdir_mut

Displaying 1 result from an estimated 1 matches for "make_parentdir_mut".

2012 May 07
0
Solved problem with hard links and schg flag under FreeBSD
...char parent[MAXPATHLEN]; int parent_flags; int saved_errno = errno; int file_flags = make_mutable(fname1, NULL, NO_FFLAGS, force_change); if (file_flags) { int ret = link(fname1, fname2); undo_make_mutable(fname1, file_flags); if (ret == 0) return 0; } parent_flags = make_parentdir_mutable(fname2, force_change, parent, sizeof parent); if (parent_flags) { int ret = link(fname1, fname2); undo_make_mutable(parent, parent_flags); if (ret == 0) return 0; } errno = saved_errno; } #endif return -1; } #endif -------------- next part -------------- --- syscall.c.orig...