Yuck, forgot to add `fdcontrol' in the Makefile along with
[unix-history] / usr.sbin / dev_mkdb / dev_mkdb.c
index 46f9cf7..fb4c40f 100644 (file)
@@ -105,7 +105,7 @@ main(argc, argv)
        key.size = sizeof(bkey);
        data.data = buf;
        while (dp = readdir(dirp)) {
        key.size = sizeof(bkey);
        data.data = buf;
        while (dp = readdir(dirp)) {
-               if (stat(dp->d_name, &sb)) {
+               if (lstat(dp->d_name, &sb)) {
                        (void)fprintf(stderr, "dev_mkdb: can't stat %s\n",
                                dp->d_name);
                        continue;
                        (void)fprintf(stderr, "dev_mkdb: can't stat %s\n",
                                dp->d_name);
                        continue;