diff options
Diffstat (limited to 'ports/unix/guts/rmdir.c')
-rw-r--r-- | ports/unix/guts/rmdir.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ports/unix/guts/rmdir.c b/ports/unix/guts/rmdir.c index 7307fcd..a47e01c 100644 --- a/ports/unix/guts/rmdir.c +++ b/ports/unix/guts/rmdir.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008-2010 Wind River Systems; see + * Copyright (c) 2008-2010, 2012 Wind River Systems; see * guts/COPYRIGHT for information. * * static int @@ -7,25 +7,25 @@ * int rc = -1; */ pseudo_msg_t *msg; - struct stat buf; + PSEUDO_STATBUF buf; int save_errno; int old_db_entry = 0; - rc = real_lstat(path, &buf); + rc = base_lstat(path, &buf); if (rc == -1) { return rc; } - msg = pseudo_client_op_plain(OP_MAY_UNLINK, 0, -1, -1, path, &buf); + msg = pseudo_client_op(OP_MAY_UNLINK, 0, -1, -1, path, &buf); if (msg && msg->result == RESULT_SUCCEED) old_db_entry = 1; rc = real_rmdir(path); if (old_db_entry) { if (rc == -1) { save_errno = errno; - pseudo_client_op_plain(OP_CANCEL_UNLINK, 0, -1, -1, path, &buf); + pseudo_client_op(OP_CANCEL_UNLINK, 0, -1, -1, path, &buf); errno = save_errno; } else { - pseudo_client_op_plain(OP_DID_UNLINK, 0, -1, -1, path, &buf); + pseudo_client_op(OP_DID_UNLINK, 0, -1, -1, path, &buf); } } else { pseudo_debug(1, "rmdir on <%s>, not in database, no effect.\n", path); |