[systemd-devel] [PATCH] nspawn: spawn shell under specified --user
Michal Vyskocil
mvyskocil at suse.cz
Mon Jun 27 00:45:59 PDT 2011
On Sun, Jun 26, 2011 at 09:59:14PM +0200, Zbigniew Jędrzejewski-Szmek wrote:
> On 06/24/2011 02:39 PM, Michal Vyskocil wrote:
> > +int isdigits(const char* str) {
> > + size_t i;
> > +
> > + if (!str)
> > + return 0;
> > +
> > + for (i = 0; i != strlen(str); i++) {
> > + if (!isdigit(str[i]))
> > + return 0;
> > + }
> Quadratic behaviour? What aboout
> while(*str)
> if(!isdigit(*str++))
> return 0;
Good point - as obvious I made the mistake in the aux function of my
code :-/
Anyway I'm still interested if Lennart would like add a new option to
his Gnome3-like container :)
Regards
Michal Vyskocil
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20110627/5b6221c5/attachment.pgp>
More information about the systemd-devel
mailing list