chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] replace fgets() with mmap() and introduce udev_lib.[hc]
[elogind.git]
/
udev-remove.c
diff --git
a/udev-remove.c
b/udev-remove.c
index 195b9874111b2269e0746082984810bb32722ab1..d9097134504a6a1cd2857b83305d683162b43c82 100644
(file)
--- a/
udev-remove.c
+++ b/
udev-remove.c
@@
-29,6
+29,7
@@
#include <errno.h>
#include "udev.h"
#include <errno.h>
#include "udev.h"
+#include "udev_lib.h"
#include "udev_version.h"
#include "udev_dbus.h"
#include "logging.h"
#include "udev_version.h"
#include "udev_dbus.h"
#include "logging.h"
@@
-103,7
+104,7
@@
static int delete_node(struct udevice *dev)
delete_path(filename);
foreach_strpart(dev->symlink, " ", pos, len) {
delete_path(filename);
foreach_strpart(dev->symlink, " ", pos, len) {
- str
nfieldcpy
(linkname, pos, len+1);
+ str
fieldcpymax
(linkname, pos, len+1);
strfieldcpy(filename, udev_root);
strfieldcat(filename, linkname);
strfieldcpy(filename, udev_root);
strfieldcat(filename, linkname);