crontab truncates passed in filename to 100 characters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cron (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
If you want to install cron from a file you run crontab [filename]. Unfortunately the filename is truncated to 100 characters in the source code set from #define MAX_FNAME 100
The MAX_FNAME should actually be set to PATH_MAX which is 4096
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: cron 3.0pl1-128.1ubuntu1
ProcVersionSign
Uname: Linux 4.15.0-1048-aws x86_64
ApportVersion: 2.20.9-0ubuntu7.7
Architecture: amd64
Date: Wed Oct 23 13:06:13 2019
Ec2AMI: ami-0977c447076
Ec2AMIManifest: (unknown)
Ec2Availability
Ec2InstanceType: t2.large
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
ProcEnviron:
TERM=xterm-color
PATH=(custom, no user)
XDG_RUNTIME_
LANG=C.UTF-8
SHELL=/bin/bash
SourcePackage: cron
UpgradeStatus: No upgrade log present (probably fresh install)