[parted-devel] [PATCH] Suppress "you are not superuser..."
warning in script mode.
Otavio Salvador
otavio at debian.org
Mon May 7 14:53:48 UTC 2007
Jim Meyering <jim at meyering.net> writes:
> This isn't a big deal, but I found it very useful in adjusting
> my integration testing framework (big patch coming in a few minutes).
> Without it, I have to test whether running with uid=0 to determine what
> the expected output should be, even with --script. With this change,
> at least when testing with --script, the output is the same (no warning)
> for root and non-root.
>
> This patch does break the existing integration tests, but the
> next patch (that replaces the framework and rewrites integration tests)
> puts everything back in order.
>
> Suppress "you are not superuser..." warning in script mode.
> * parted/parted.c (_init): Do not emit this warning in script mode:
> "You are not superuser. Watch out for permissions."
>
> Signed-off-by: Jim Meyering <jim at meyering.net>
Ack.
--
O T A V I O S A L V A D O R
---------------------------------------------
E-mail: otavio at debian.org UIN: 5906116
GNU/Linux User: 239058 GPG ID: 49A5F855
Home Page: http://otavio.ossystems.com.br
---------------------------------------------
"Microsoft sells you Windows ... Linux gives
you the whole house."
More information about the parted-devel
mailing list