Commit e6f09605 authored by Steve Langasek's avatar Steve Langasek
Browse files

Never been seen in the wild, but find_mount("/") /could/ return NULL - so

handle this case.
parent 38088989
......@@ -1495,7 +1495,7 @@ mounted (Mount *mnt)
* /dev/root symlink for the right device too ;-)
*/
root = find_mount ("/");
if (root->mounted_dev != (dev_t)-1) {
if (root && root->mounted_dev != (dev_t)-1) {
FILE *rules;
mask = umask (0022);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment