]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Don't return error if chown() fails
authorTakashi Iwai <tiwai@suse.de>
Mon, 12 Sep 2005 17:50:16 +0000 (17:50 +0000)
committerTakashi Iwai <tiwai@suse.de>
Mon, 12 Sep 2005 17:50:16 +0000 (17:50 +0000)
Don't take serious even if chown() fails in the creation of direct server.
It happens if a user doesn't belong to the group specified in the config.

src/pcm/pcm_direct.c

index 33ed68a7285095e9434433fe31e849f338a757ba..1d2252a7d871e56c158a50f79482ca6d5c965770 100644 (file)
@@ -198,11 +198,13 @@ static int make_local_socket(const char *filename, int server, mode_t ipc_perm,
                                return result;
                        }
                        if (chown(filename, -1, ipc_gid) < 0) {
+#if 0 /* it's not fatal */
                                int result = -errno;
-                               SYSERR("chmod failed: %s", filename);
+                               SYSERR("chown failed: %s", filename);
                                close(sock);
                                unlink(filename);
                                return result;
+#endif
                        }
                }
        } else {