aboutsummaryrefslogtreecommitdiff
path: root/libbb/copy_file.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-03-12 18:22:55 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-03-12 18:22:55 +0000
commit39c651e9097e0e55a52c897982d6e84d281f7396 (patch)
treead535283af2299825f65b6b44c889dc7e7bfc842 /libbb/copy_file.c
parentb3f09f4a5092aacbdc3da80d4fefeaf06445a4f8 (diff)
downloadbusybox-w32-39c651e9097e0e55a52c897982d6e84d281f7396.tar.gz
busybox-w32-39c651e9097e0e55a52c897982d6e84d281f7396.tar.bz2
busybox-w32-39c651e9097e0e55a52c897982d6e84d281f7396.zip
introduce and use setfscreatecon_or_die
(patch by Yuichi Nakamura <ynakam@hitachisoft.jp>) runcon: *yet another* fix for vda's brainfart :(
Diffstat (limited to 'libbb/copy_file.c')
-rw-r--r--libbb/copy_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/copy_file.c b/libbb/copy_file.c
index 6391824aa..07564afd0 100644
--- a/libbb/copy_file.c
+++ b/libbb/copy_file.c
@@ -74,7 +74,7 @@ int copy_file(const char *source, const char *dest, int flags)
74 } 74 }
75 } else { 75 } else {
76 if (errno == ENOTSUP || errno == ENODATA) { 76 if (errno == ENOTSUP || errno == ENODATA) {
77 setfscreatecon(NULL); 77 setfscreatecon_or_die(NULL);
78 } else { 78 } else {
79 bb_perror_msg("cannot lgetfilecon %s", source); 79 bb_perror_msg("cannot lgetfilecon %s", source);
80 return -1; 80 return -1;