crontab truncates passed in filename to 100 characters

Bug #1849543 reported by Henry Paradiz
6
This bug affects 1 person
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
ProcVersionSignature: User Name 4.15.0-1048.50-aws 4.15.18
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-0977c44707608ee22
Ec2AMIManifest: (unknown)
Ec2AvailabilityZone: us-east-1d
Ec2InstanceType: t2.large
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
ProcEnviron:
 TERM=xterm-color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=C.UTF-8
 SHELL=/bin/bash
SourcePackage: cron
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Henry Paradiz (hparadiz) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.