blob: 029e5a2f961d24f2e69f392beb9bd1dc4bf06d43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/*
* static int
* wrap_rmdir(const char *path) {
* int rc = -1;
*/
struct stat64 buf;
int save_errno;
rc = real___lxstat64(_STAT_VER, path, &buf);
if (rc == -1) {
return rc;
}
rc = real_rmdir(path);
save_errno = errno;
if (rc != -1) {
pseudo_client_op(OP_UNLINK, AT_SYMLINK_NOFOLLOW, -1, -1, path, &buf);
}
errno = save_errno;
/* return rc;
* }
*/
|