]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
main: Open /proc/cmdline by absolute path
authorColin Watson <cjwatson@ubuntu.com>
Tue, 7 Sep 2010 14:18:52 +0000 (15:18 +0100)
committerCharlie Brej <cbrej@cs.man.ac.uk>
Tue, 7 Sep 2010 14:18:52 +0000 (15:18 +0100)
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/main.c

index 533bf42186bb8669ba6bcd0a97a8adcd5f161d9e..9a669bd215e17db7abb8fabdafea8db418a8a713 100644 (file)
@@ -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)
     {