projects
/
platform
/
upstream
/
kmod.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e90f070
)
depmod: Fix crash in previous commit if root is not set
author
Colin Walters
<walters@verbum.org>
Wed, 25 Feb 2015 13:22:38 +0000
(08:22 -0500)
committer
Lucas De Marchi
<lucas.demarchi@intel.com>
Wed, 25 Feb 2015 14:27:05 +0000
(11:27 -0300)
[This fixes http://build.gnome.org/continuous/buildmaster/builds/2015/02/25/31/build/output.txt ]
The variable we're reading here is "root", not "optarg" which is only
valid inside the getopt call.
tools/depmod.c
patch
|
blob
|
history
diff --git
a/tools/depmod.c
b/tools/depmod.c
index
a4a7479
..
18aab5d
100644
(file)
--- a/
tools/depmod.c
+++ b/
tools/depmod.c
@@
-2484,7
+2484,7
@@
static int do_depmod(int argc, char *argv[])
}
if (root)
- root = path_make_absolute_cwd(
optarg
);
+ root = path_make_absolute_cwd(
root
);
cfg.dirnamelen = snprintf(cfg.dirname, PATH_MAX,
"%s/lib/modules/%s",