aboutsummaryrefslogtreecommitdiffstats
path: root/syscall.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2004-02-18 22:33:21 +0000
committerWayne Davison <wayned@samba.org>2004-02-18 22:33:21 +0000
commit7a27e9b599a48f4b0ab6e6ade69a99a120c042fe (patch)
tree78bef4631e05c31e424f4fb36fe72dc5a1f19d6c /syscall.c
parent62c9e6b3a54f147629497a2bc791acac60b5668b (diff)
downloadandroid_external_rsync-7a27e9b599a48f4b0ab6e6ade69a99a120c042fe.tar.gz
android_external_rsync-7a27e9b599a48f4b0ab6e6ade69a99a120c042fe.tar.bz2
android_external_rsync-7a27e9b599a48f4b0ab6e6ade69a99a120c042fe.zip
Don't use ENOMSG -- it's not portable.
Diffstat (limited to 'syscall.c')
-rw-r--r--syscall.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/syscall.c b/syscall.c
index cbc5e537..95646a3b 100644
--- a/syscall.c
+++ b/syscall.c
@@ -90,7 +90,7 @@ int do_rmdir(char *pathname)
int do_open(char *pathname, int flags, mode_t mode)
{
if (flags != O_RDONLY) {
- RETURN_ERROR_IF(dry_run, ENOMSG);
+ RETURN_ERROR_IF(dry_run, 0);
RETURN_ERROR_IF_RO_OR_LO;
}
@@ -149,7 +149,7 @@ int do_mkdir(char *fname, mode_t mode)
/* like mkstemp but forces permissions */
int do_mkstemp(char *template, mode_t perms)
{
- RETURN_ERROR_IF(dry_run, ENOMSG);
+ RETURN_ERROR_IF(dry_run, 0);
RETURN_ERROR_IF(read_only, EROFS);
#if defined(HAVE_SECURE_MKSTEMP) && defined(HAVE_FCHMOD)