@id
Bruce Easton
bruce at stn.com
Thu Jan 25 11:23:24 PST 2007
Mark Luljak wrote:
>
> Confusious (Chris Rendall) say:
> > With SCO UNIX the longest username possible was 8 characters. Linux
> > allows longer usernames so I've created everyone's username as the first
> > initial and last name. In filePro @id only returns the first 8
> > characters which has broken a number of my apps since it is cutting off
> > the username. I'm still running 5.0.14 and I'm wondering if this has
> > been fixed in a newer release, and it not are there plans to expand @id
> > to return the whole username?
>
>[...] I would suggest is that
> instead of using @ID, you actually use getenv("USER") and store it in a
> field of whatever length you deem appropriate.
>[..]
Not sure what the difference is or if there should be a difference, but when
I am logged in as a non-root user our SCO (?5.5) box here, $USER has no
value, but $LOGNAME has the login name. But then on a Fedora box $USER and
$LOGNAME are showing the same value. ???
We use getenv("LOGNAME") for several internal apps like employee time
recording since even when somone is super-user, we want the filepro app. to
record the original login name, not "root" (in a real field as Mark
mentioned instead of relying on @id). I haven't tried longer login names
with this technique on Linux, for instance, but I would think it should work
the same.
Bruce
Bruce Easton
STN, Inc.
More information about the Filepro-list
mailing list