← Commit list

933993a46

Bernhard Reutner-Fischer
Bernhard Reutner-Fischer
2009-10-27
FAILED Duration: 31s

Subject

mdev: handle string modes

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

util-linux/mdev.c+3 -2
@@ -111,7 +111,7 @@ static void make_device(char *path, int delete)
{
char *device_name;
int major, minor, type, len;
- int mode;
+ mode_t mode;
parser_t *parser;
/* Try to read major/minor string. Note that the kernel puts \n after
@@ -249,7 +249,8 @@ static void make_device(char *path, int delete)
bb_error_msg("unknown user/group %s", tokens[1]);
/* 3rd field: mode - device permissions */
- mode = strtoul(tokens[2], NULL, 8);
+ /* mode = strtoul(tokens[2], NULL, 8); */
+ bb_parse_mode(tokens[2], &mode);
val = tokens[3];
/* 4th field (opt): >|=alias */