diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-09-10 18:24:39 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2008-09-10 18:24:39 +0200 |
commit | 75250977137c26f706fc1514aca7982107859b1c (patch) | |
tree | ffda94d4c88b4ce6a39003384df7af00933fb21c /extras/fstab_import | |
parent | 3eb46ec6ddeb31d9886ebb736d1d7b3534d2f354 (diff) |
extras: use libudev code
Diffstat (limited to 'extras/fstab_import')
-rw-r--r-- | extras/fstab_import/Makefile.am | 5 | ||||
-rw-r--r-- | extras/fstab_import/fstab_import.c | 4 |
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; |