In function 'open', inlined from 'main' at useradd.c:1579: /build/toolchain-2.0/platform/arm-gcc44-gl214-eabi/arm-flx-linux-gnueabi/sys-root/usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT in second argument needs 3 arguments --- ./src/useradd.c.bad 2005-01-18 00:02:41 +0100 +++ ./src/useradd.c 2011-10-26 17:11:15 +0200 @@ -1578,7 +1578,7 @@ if (access (ms, R_OK) != 0) { fd = open (ms, O_CREAT | O_EXCL | O_WRONLY | - O_TRUNC); + O_TRUNC, mode); if (fd != -1) { fchown (fd, user_id, mail_gid); fchmod (fd, mode);