Send plymouth mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.freedesktop.org/mailman/listinfo/plymouth
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of plymouth digest..."


Today's Topics:

   1. [PATCH] [main,client] Open /proc/cmdline by absolute path
      (Colin Watson)


----------------------------------------------------------------------

Message: 1
Date: Mon, 6 Sep 2010 17:23:52 +0100
From: Colin Watson <[email protected]>
Subject: [PATCH] [main,client] Open /proc/cmdline by absolute path
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

Open /proc/cmdline, not proc/cmdline.  (Technically this doesn't matter
in the daemon, since it's already done chdir ("/"), but the client does
need this and it's clearer to have them match.)
---
 src/client/plymouth.c |    2 +-
 src/main.c            |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/client/plymouth.c b/src/client/plymouth.c
index 28ec6bb..552c36a 100644
--- a/src/client/plymouth.c
+++ b/src/client/plymouth.c
@@ -742,7 +742,7 @@ get_kernel_command_line (state_t *state)
   int fd;
 
   ply_trace ("opening /proc/cmdline");
-  fd = open ("proc/cmdline", O_RDONLY);
+  fd = open ("/proc/cmdline", O_RDONLY);
 
   if (fd < 0)
     {
diff --git a/src/main.c b/src/main.c
index 533bf42..9a669bd 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1609,7 +1609,7 @@ get_kernel_command_line (state_t *state)
   char *key;
 
   ply_trace ("opening /proc/cmdline");
-  fd = open ("proc/cmdline", O_RDONLY);
+  fd = open ("/proc/cmdline", O_RDONLY);
 
   if (fd < 0)
     {
-- 
1.7.1


------------------------------

_______________________________________________
plymouth mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/plymouth


End of plymouth Digest, Vol 23, Issue 2
***************************************

Reply via email to