SHA256
1
0
forked from pool/alsa-utils
alsa-utils/0001-alsactl-save-state-do-not-call-rename-for-stdio.patch
Takashi Iwai d9e5db30ae Accepting request 239189 from home:tiwai:branches:multimedia:libs
- Remove obsoleted *.po files
- Backport upstream fixes:
  0001-alsactl-save-state-do-not-call-rename-for-stdio.patch
  0002-alsamixer-include-missing-mixer_controls.h.patch

OBS-URL: https://build.opensuse.org/request/show/239189
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alsa-utils?expand=0&rev=102
2014-07-01 16:15:27 +00:00

27 lines
796 B
Diff

From 03a652e18ddc2eaad9b6ff3653515d54bd273d75 Mon Sep 17 00:00:00 2001
From: Jaroslav Kysela <perex@perex.cz>
Date: Wed, 25 Jun 2014 10:47:21 +0200
Subject: [PATCH 1/2] alsactl: save state - do not call rename for stdio
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
---
alsactl/state.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/alsactl/state.c b/alsactl/state.c
index c33f5017999f..e0c6f2e02e9b 100644
--- a/alsactl/state.c
+++ b/alsactl/state.c
@@ -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);
--
2.0.0