chiark / gitweb /
use size definitions from libudev
[elogind.git] / udev / udev_utils.c
index c051b20abd848f91b94585af1a3a616cdeee2960..09b965ef3bbfb5de3620b1fb3a8d93e68783db0d 100644 (file)
@@ -127,7 +127,7 @@ int add_matching_files(struct udev *udev, struct list_head *name_list, const cha
 {
        struct dirent *ent;
        DIR *dir;
-       char filename[PATH_SIZE];
+       char filename[UTIL_PATH_SIZE];
 
        dbg(udev, "open directory '%s'\n", dirname);
        dir = opendir(dirname);
@@ -141,7 +141,7 @@ int add_matching_files(struct udev *udev, struct list_head *name_list, const cha
                if (ent == NULL || ent->d_name[0] == '\0')
                        break;
 
-               if ((ent->d_name[0] == '.') || (ent->d_name[0] == COMMENT_CHARACTER))
+               if ((ent->d_name[0] == '.') || (ent->d_name[0] == '#'))
                        continue;
 
                /* look for file matching with specified suffix */