Ticket #1222 (new defect)

Opened 12 years ago

Last modified 12 years ago

Obscure string processing bug in sudo lecture files

Reported by: jdreed Owned by:
Priority: normal Milestone: Upstream Utopia
Component: -- Keywords:
Cc: Fixed in version:
Upstream bug:

Description

See #1190.

Something in sudo is adding one or two characters for no reason. Example:

open("/etc/athena/sudo-warning", O_RDONLY) = 7
fstat(7, {st_mode=S_IFREG|0644, st_size=408, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fe
65e8ff000
read(7, "Attention: You are on a Debathena cluster machine. Although you can use
\nsudo to become root, your access is restricted to a sandbox (chroot)\ncreated 
when you logged in. If you install software or change\nglobal settings, they wil
l be reverted when you log out.\n\nIf you would like a permanent change to clust
er machines, please\nreport a bug via the \"sendbug\" command.\nPlease enter you
r Athena password below.\n\n", 4096) = 408
read(7, "", 4096)                       = 0
write(2, "Attention: You are on a Debathena cluster machine. Although you can use\nsudo to become root, your access is restricted to a sandbox (chroot)\ncreated when you logged in. If you install software or change\nglobal settings, they will be reverted when you log out.\n\nIf you would like a permanent change to cluster machines, please\nreport a bug via the \"sendbug\" command.\nPlease enter your Athena password below.\n\n\3", 409) = 409
read(7, "", 4096)                       = 0
close(7)                                = 0

Change History

comment:1 Changed 12 years ago by jdreed

  • Milestone changed from The Distant Future to Upstream Utopia

This was fixed upstream in sudo 1.8.4

Fixed a bug where stack garbage could be printed at the end of the lecture when the lecture_file option was enabled. 

Someone who knows how to file an SRU that actually has a chance of getting accepted should either do so, or document how to do so.

Note: See TracTickets for help on using tickets.