Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 46546 - at-jobs have empty environment-variables
at-jobs have empty environment-variables
Product: Red Hat Raw Hide
Classification: Retired
Component: at (Show other bugs)
i386 Linux
high Severity medium
: ---
: ---
Assigned To: Crutcher Dunnavant
Aaron Brown
: Security
Depends On:
  Show dependency treegraph
Reported: 2001-06-29 07:06 EDT by Enrico Scholz
Modified: 2007-03-26 23:46 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-07-20 04:26:39 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
This patch should replace the original at-3.1.8-env.patch (338 bytes, patch)
2001-07-18 13:11 EDT, Enrico Scholz
no flags Details | Diff
Should fix it finally (465 bytes, patch)
2001-07-20 04:26 EDT, Enrico Scholz
no flags Details | Diff

  None (edit)
Description Enrico Scholz 2001-06-29 07:06:40 EDT
Description of Problem:

All env-variables of jobs started by at-3.1.8-18 get empty values. The
man-page says they are retained.

The at-3.1.8-env.patch seems to be responsibly. There the last hunk

-           fwrite(*atenv, sizeof(char), eqp - *atenv - 1, fp);
+           fwrite(*atenv, sizeof(char), eqp - *atenv, fp); 

should be removed. Else entries like

| <var>=<values>; export <var>=

will be created.

| <var>=<values>; export <var>

would be correct.

How Reproducible:


Steps to Reproduce:
1. echo 'test' | at now+5min
2. at -c <number of the job>

Actual Results:

PWD=/home/ensc; export PWD=
http_proxy=http://www-cache:3128/; export http_proxy=

Expected Results:

PWD=/home/ensc; export PWD
http_proxy=http://www-cache:3128/; export http_proxy

Additional Information:
$ rpm -q at
Comment 1 Enrico Scholz 2001-07-09 12:10:30 EDT
It's a serious bug making `at' unusable. Therefore increasing importance...
Comment 2 Enrico Scholz 2001-07-18 13:11:39 EDT
Created attachment 24010 [details]
This patch should replace the original at-3.1.8-env.patch
Comment 3 Glen Foster 2001-07-18 13:15:08 EDT
This defect should be fixed ASAP, Crutcher.
Comment 4 Crutcher Dunnavant 2001-07-18 16:08:56 EDT
Comment 5 Enrico Scholz 2001-07-20 04:24:39 EDT
Sorry, my suggested patch was erroneous and reopens perhaps the door to a local
attack (have overseen that at is SUID and user can give a manipulated env like
Comment 6 Enrico Scholz 2001-07-20 04:26:35 EDT
Created attachment 24287 [details]
Should fix it finally
Comment 7 Crutcher Dunnavant 2001-08-02 16:48:46 EDT
fixed, again.

Note You need to log in before you can comment on or make changes to this bug.