Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!mailrus!husc6!ogccse!blake!uw-beaver!microsoft!w-colinp From: w-colinp@microsoft.UUCP (Colin Plumb) Newsgroups: comp.sys.amiga.tech Subject: Re: Bug in SetComment() ... Disk-Validator didn't fix the result Message-ID: <118@microsoft.UUCP> Date: 21 Dec 88 06:05:18 GMT References: <8812210016.AA07200@eden.berkeley.edu> Reply-To: w-colinp@microsoft.UUCP (Colin Plumb) Organization: Microsoft Corp., Redmond WA Lines: 11 Confusion: Microsoft Corp., Redmond WA Gee, and I was just wondering about this! If someone tries to set a filename or comment that's too long, should you: - return an error - truncate it, change it, and return an error, or - truncate it, change it, and return no error? Also, how doess one interrogate to find the longest legal filename length? As part of the error passed back on failure or truncation would be fine in most cases. -- -Colin (uunet!microsof!w-colinp)