Modify

Opened 5 years ago

Last modified 4 years ago

#13289 new defect

grub does not compile if user group have spaces (winbind AD group)

Reported by: luizluca@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Attitude Adjustment 12.09 Beta
Keywords: Cc:

Description

Hello,

My user has a group with space: "Domain users". This is from an AD, using samba winbind intregration.

-rw------- 1 luizluca domain users 8634459 Apr  3 20:16 /home/luizluca/.xsession-errors

This extra space breaks grub compilation. At some point, grub checks for a file size using "ls -l", and getting the 5th field. As group field has a space, it counts as two and the size is misread. I.e:

   set dummy `ls -l $^`; \
   echo "#define DISKLESS_SIZE $$6" > $@

I wrote a patch that uses stat command, more robust, to read file size. This problem affects all openwrt versions that contains grub like backfire, attitude adjustment and trunk.

BTW, grub legacy is not accepting bugs and patches upstream.

Attachments (1)

001-fix_group_with_spaces.patch (1.5 KB) - added by luizluca@… 5 years ago.
Fixes the grub compilation when the user group contains spaces

Download all attachments as: .zip

Change History (2)

Changed 5 years ago by luizluca@…

Fixes the grub compilation when the user group contains spaces

comment:1 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.