alsactl: save state - do not call rename for stdio

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2014-06-25 10:47:21 +02:00
parent 6f9835f200
commit 03a652e18d

View file

@ -1626,7 +1626,7 @@ int save_state(const char *file, const char *cardname)
snd_output_close(out);
if (err < 0) {
error("snd_config_save: %s", snd_strerror(err));
} else {
} else if (nfile) {
err = rename(nfile, file);
if (err < 0)
error("rename failed: %s (%s)", strerror(-err), file);