mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
readahead: remove misleading error messages
https://bugzilla.redhat.com/show_bug.cgi?id=678255
This commit is contained in:
parent
d12d0e647a
commit
a76fad090a
@ -96,6 +96,9 @@ static int pack_file(FILE *pack, const char *fn, bool on_btrfs) {
|
||||
if (errno == ENOENT)
|
||||
return 0;
|
||||
|
||||
if (errno == EPERM || errno == EACCES)
|
||||
return 0;
|
||||
|
||||
log_warning("open(%s) failed: %m", fn);
|
||||
r = -errno;
|
||||
goto finish;
|
||||
|
@ -62,7 +62,7 @@ static int unpack_file(FILE *pack) {
|
||||
|
||||
if ((fd = open(fn, O_RDONLY|O_CLOEXEC|O_NOATIME|O_NOCTTY|O_NOFOLLOW)) < 0) {
|
||||
|
||||
if (errno != ENOENT)
|
||||
if (errno != ENOENT && errno != EPERM && errno != EACCES)
|
||||
log_warning("open(%s) failed: %m", fn);
|
||||
|
||||
} else if (file_verify(fd, fn, arg_file_size_max, &st) <= 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user