X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=utility.c;h=e1e0f71a5ffa4f096c8d21741862664411f7b097;hb=e5cec4e3ac31ec32fd8a39287155374ea2283518;hp=f3af01f44c375e5117f5b1322ba2ddb4ff291198;hpb=f7cf2f7ef98077c59e4da4bc25de38c22174ac9d;p=oweals%2Fbusybox.git diff --git a/utility.c b/utility.c index f3af01f44..e1e0f71a5 100644 --- a/utility.c +++ b/utility.c @@ -902,7 +902,7 @@ unsigned long my_getpwnamegid(char *name) #endif /* BB_CHMOD_CHOWN_CHGRP || BB_PS || BB_LS || BB_TAR || BB_ID */ -#if (defined BB_CHVT) || (defined BB_DEALLOCVT) +#if (defined BB_CHVT) || (defined BB_DEALLOCVT) || (defined BB_SETKEYCODES) #include @@ -987,7 +987,7 @@ int get_console_fd(char *tty_name) } -#endif /* BB_CHVT || BB_DEALLOCVT */ +#endif /* BB_CHVT || BB_DEALLOCVT || BB_SETKEYCODES */ #if !defined BB_REGEXP && (defined BB_GREP || defined BB_SED) @@ -1199,9 +1199,6 @@ extern struct mntent *findMountPoint(const char *name, const char *table) return 0; while ((mountEntry = getmntent(mountTable)) != 0) { - if (strcmp(mountEntry->mnt_fsname, "none") == 0) { - continue; - } if (strcmp(name, mountEntry->mnt_dir) == 0 || strcmp(name, mountEntry->mnt_fsname) == 0) /* String match. */ break; @@ -1331,7 +1328,7 @@ extern pid_t* findPidByName( char* pidName) fatalError( "\nDEVPS_GET_PID_LIST: %s\n", strerror (errno)); /* Now search for a match */ - for (i=1; i