Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   ArchLinux Pacman Development (http://www.linux-archive.org/archlinux-pacman-development/)
-   -   Do not dereference symlinks when calculating size (http://www.linux-archive.org/archlinux-pacman-development/637293-do-not-dereference-symlinks-when-calculating-size.html)

Allan McRae 02-24-2012 11:05 PM

Do not dereference symlinks when calculating size
 
On 25/02/12 01:59, Dan McGee wrote:
> On Fri, Feb 24, 2012 at 6:04 AM, Allan McRae <allan@archlinux.org> wrote:
>> Passing the "-L" flag to stat means we get the size of the file
>> being pointed to for symlinks instead of the size of the symlink.
>>
>> Signed-off-by: Allan McRae <allan@archlinux.org>
>
> NACK. You're reverting this commit. This is what we get for trying to
> repurpose SIZECMD for use in makepkg, it looks like you need a second
> command.
>
> commit 20aa17c276c35e08c7a8e2aa20410b99a20f8129
> Author: Dan McGee <dan@archlinux.org>
> Date: Wed Sep 23 19:11:34 2009 -0500
>
> repo-add: make sure we get size of target file
>
> If the package we were adding was a symlink, we stuck the symlink size in
> the database rather than the size of the file it referred to. Whoops!
>
> Signed-off-by: Dan McGee <dan@archlinux.org>
>

OK, did not seed this.... Will send a fixed on later.

Allan


All times are GMT. The time now is 06:51 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.