summaryrefslogtreecommitdiff
path: root/plugins/vorbis
diff options
context:
space:
mode:
authorGravatar Ian Nartowicz <iann@crunchbang>2014-05-30 22:01:09 +0100
committerGravatar Ian Nartowicz <iann@crunchbang>2014-05-30 22:01:09 +0100
commit218751d661d80fe18cef441d4a3abbd553ce7f40 (patch)
tree59782485e64796f40a1c360c502b9ce0b2798cf2 /plugins/vorbis
parentac24e2c9fbde52438e7f0a07e243069dc9859652 (diff)
Just ignore a failed stat
Diffstat (limited to 'plugins/vorbis')
-rw-r--r--plugins/vorbis/vcedit.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/vorbis/vcedit.c b/plugins/vorbis/vcedit.c
index 00a3a47f..2f30aeb6 100644
--- a/plugins/vorbis/vcedit.c
+++ b/plugins/vorbis/vcedit.c
@@ -222,10 +222,8 @@ off_t vcedit_write_metadata(DB_FILE *in, const char *fname, int link, const char
goto cleanup;
}
struct stat stat_struct;
- if (stat(fname, &stat_struct) || chmod(outname, stat_struct.st_mode)) {
- *lasterror = "cannot transfer file permissions.";
- goto cleanup;
- }
+ if (!stat(fname, &stat_struct))
+ chmod(outname, stat_struct.st_mode);
/* Copy through pages until we reach the right info header */
int codec_serial = 0;