diff options
-rw-r--r-- | gnu/usr.bin/binutils-2.17/binutils/rename.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils-2.17/binutils/rename.c b/gnu/usr.bin/binutils-2.17/binutils/rename.c index 7d21cb34c04..3667f30d025 100644 --- a/gnu/usr.bin/binutils-2.17/binutils/rename.c +++ b/gnu/usr.bin/binutils-2.17/binutils/rename.c @@ -177,6 +177,7 @@ smart_rename (const char *from, const char *to, int preserve_dates ATTRIBUTE_UNU ret = rename (from, to); if (ret == 0) { +#ifndef __OpenBSD__ if (exists) { /* Try to preserve the permission bits and ownership of @@ -195,6 +196,7 @@ smart_rename (const char *from, const char *to, int preserve_dates ATTRIBUTE_UNU if (chown (to, s.st_uid, s.st_gid) >= 0) chmod (to, s.st_mode & 07777); } +#endif /* !__OpenBSD__ */ } else { |