[Lazarus] strange linux problem

Mark Morgan Lloyd markMLl.lazarus at telemetry.co.uk
Wed Feb 19 15:12:03 CET 2014


brian wrote:
> On 02/19/2014 04:07 AM, Mattias Gaertner wrote:
>> On Wed, 19 Feb 2014 03:46:51 -0500
>> brian <brian at meadows.pair.com> wrote:
>>
>>> [...]
>>> on a network drive. This is using Debian 7.2, and a recent svn version
>>> of Lazarus (I actually use fpcup to do the downloads and builds). The
>>> information on the 'About' page is version 1.3, date 2014-02-12, fpc
>>> version 2.6.3, svn revision 44027, x86_64-linux-gtk 2
>>> [...]
>>> chmods and/or deletes on the files on the network drive.
>>> Stepping through with the debugger, some, but not all, of the
>>> attempted chmods return a status of -1. Some, but not all, of the
>>> calls to sysutils.deletefile return false. What is puzzling me is that
>>> if, instead of calling fpchmod and sysutils.deletefile I instead call
>>> fpsystem and do the operations that way, it works. I can also run up a
>>> command prompt and do the failed operations that way with no problem.
>>> [...]
>>
>> Is it reproducable on the same file?
> 
> On the basis of two examples of each, yes.
> 
>> Can you give an example file name?
> 
> Two of the files which failed to delete are unknown.mp4 and video_ts.vob.
> 
> Two files where the attempt to chmod them failed are 
> The_Buddhas_Instruction_to_his_son.mp4 and 
> Yogis_Of_Tibet_Rare_Documentary.mp4
> 
> In all cases, the full paths are made up of 
> ['A'..'Z','a'..'z','0'..'9','_'] only
> 
> (well, also '/' and '.', obviously!)

Check permissions/ownership of those files, and ownership/permissions of 
the directory containing them. Oh, and make sure that they're not 
actually symlinks to something unexpected, and that nothing's got them 
open (lsof command).

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]




More information about the Lazarus mailing list