summaryrefslogtreecommitdiff
path: root/extras/fstab_import
diff options
context:
space:
mode:
Diffstat (limited to 'extras/fstab_import')
-rw-r--r--extras/fstab_import/Makefile.am5
-rw-r--r--extras/fstab_import/fstab_import.c4
2 files changed, 3 insertions, 6 deletions
diff --git a/extras/fstab_import/Makefile.am b/extras/fstab_import/Makefile.am
index 7b99471fa2..2ed383d95e 100644
--- a/extras/fstab_import/Makefile.am
+++ b/extras/fstab_import/Makefile.am
@@ -15,10 +15,7 @@ fstab_import_SOURCES = \
fstab_import.c \
../../udev/lib/libudev.h \
../../udev/lib/libudev.c \
- ../../udev/lib/libudev-util.c \
- ../../udev/udev_sysdeps.c \
- ../../udev/udev_utils.c \
- ../../udev/udev_utils_string.c
+ ../../udev/lib/libudev-util.c
if USE_SELINUX
fstab_import_LDADD = \
diff --git a/extras/fstab_import/fstab_import.c b/extras/fstab_import/fstab_import.c
index 0f4685ae2a..245a72fffb 100644
--- a/extras/fstab_import/fstab_import.c
+++ b/extras/fstab_import/fstab_import.c
@@ -146,7 +146,7 @@ int main(int argc, char *argv[])
if (label[0] == '"' || label[0] == '\'') {
char *pos;
- strlcpy(str, &label[1], sizeof(str));
+ util_strlcpy(str, &label[1], sizeof(str));
pos = strrchr(str, label[0]);
if (pos == NULL)
continue;
@@ -170,7 +170,7 @@ int main(int argc, char *argv[])
if (uuid[0] == '"' || uuid[0] == '\'') {
char *pos;
- strlcpy(str, &uuid[1], sizeof(str));
+ util_strlcpy(str, &uuid[1], sizeof(str));
pos = strrchr(str, uuid[0]);
if (pos == NULL)
continue;