Re: [dev] Slock segfaults if USER variable is empty

From: Alexander Huemer <alexander.huemer_AT_xx.vu>
Date: Wed, 18 Dec 2013 20:41:21 +0100

On Wed, Dec 18, 2013 at 01:16:24PM -0500, Carlos Torres wrote:
>
> On 12/18/13, Ivan Vershinin <ivan_AT_vershinin.net> wrote:
> > But crontab file does not contain USER
> > environment variable by default,
>
> I might be missing something but doesn't crontab allow
> you to mention env variables in it, and it passes them
> to its execv?

Yes, that's possible.

> all you'd have to do is
> USER=ivan

IMHO that should not be necessary from the slock user perspective.
The check in the slock code is simple and straight forward, why not do
that?

Kind regards,
-Alex
Received on Wed Dec 18 2013 - 20:41:21 CET

This archive was generated by hypermail 2.3.0 : Wed Dec 18 2013 - 20:48:06 CET