switchroot: Fix typo in comment ENINVAL => EINVAL

Closes: #1676
Approved by: cgwalters
This commit is contained in:
Alex Kiernan 2018-07-07 13:18:40 +00:00 committed by Atomic Bot
parent eeacbc6b29
commit d6327f9dd9

View File

@ -94,7 +94,7 @@ main(int argc, char *argv[])
/* It's a mounted, read-only fs; remount it */
if (mount (target, target, NULL, MS_REMOUNT | MS_SILENT, NULL) < 0)
{
/* Also ignore ENINVAL - if the target isn't a mountpoint
/* Also ignore EINVAL - if the target isn't a mountpoint
* already, then assume things are OK.
*/
if (errno != EINVAL)