|
Message-ID: <20230329171643.GE3630668@port70.net> Date: Wed, 29 Mar 2023 19:16:43 +0200 From: Szabolcs Nagy <nsz@...t70.net> To: Matthias Goergens <matthias.goergens@...il.com>, musl@...ts.openwall.com Subject: Re: [PATCH] mntent: deal with escaped whitespace in mtab and fstab * Szabolcs Nagy <nsz@...t70.net> [2023-03-29 19:04:18 +0200]: > > - return fprintf(f, "%s\t%s\t%s\t%s\t%d\t%d\n", > > - mnt->mnt_fsname, mnt->mnt_dir, mnt->mnt_type, mnt->mnt_opts, > > - mnt->mnt_freq, mnt->mnt_passno) < 0; > > the original code has a bug here: fprintf returns number of > chars printed but addmntent returns 0 to indicate success. sorry missed the < 0.
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.