Re: Is AMD64 page out of date about W^X?

2007-09-29 Thread Rob Waite

But it does work on certain ia32e chips...

I think the last line should read... some (earlier) ia32e chips
do not have W^X support.

At least to give some information so that people can research
their chip further.

- Original Message - 
From: Steve Shockley [EMAIL PROTECTED]

To: misc@openbsd.org
Sent: Friday, September 28, 2007 10:24 PM
Subject: Re: Is AMD64 page out of date about W^X?



Rob Waite wrote:

It also runs on the Intel ia32e processors (...) but since Intel
left out support for the page table NXE bit (No-EXecute)
there is no W^X support on the Intel CPUs.


Perhaps that last line should be ...on the Intel ia32e CPUs.?




Re: OpenNTPD not syncing anymore with recent i386 snaphots?

2007-09-29 Thread Maurice Janssen
On Saturday, September 29, 2007 at 00:30:39 -0400, Martin Gignac wrote:
Hi,

I recently installed two OpenBSD systems from an i386 snapshot dated
September 13th; one in a VMware machine and one on actual physical
hardware.

A couple of days later I noticed that both servers were *not*
date/time synced with the NTP server in my lab, even though I run
OpenNTPD on all my OpenBSD servers.

There were some changes in ntpd a couple of weeks ago (new correction
keyword to compensate the offset of radio clocks and some changes in the
parser) and the default weight of 1 was lost.  This leads to the
problems you see.  But this was fixed on September 14, so recent
snaphots should be OK.

Can you check whether this is fixed when you add 'weight 1' to each
server line in ntpd.conf?

Maurice



Re: files in root directory

2007-09-29 Thread Woodchuck
On Fri, 28 Sep 2007, Chris Nolan wrote:

 Hello, I read through the FAQ and searched the archives but couldn't find an
 answer to this question. In /src/distrib/sets/lists/etc/mi, why does openbsd
 include the .cshrc and .profile files in the root directory?
 
 Thanks for any insights!

This is root's home directory, traditionally, when booting single-user.

 Discover the new Windows Vista

I have heard of it, and I don't like what I hear.

Dave
-- 
  Dude, Dave's not here!



OpenBSD sticker considered cool by a layman

2007-09-29 Thread Karel Kulhavy
Some (cute) girl yesterday who doesn't understand computers at all pointed at
my laptop and asked where did you get this damned cool sticker? It was the
wireframe Puffy. People also tend to stare at Puffy when I use my laptop on
the bus.

I think this confirms that the stickers are really good design. I also have an
O'Nell sticker on my laptop (surfing company). I guess it means that O'Neill
with their undoubtedly huge budget are #2 in coolness here.

Would it be possible to make a sticker with this picture, but with the
small letters removed and the large ones all in one size?
http://openbsd.org/images/tshirt-23.gif

I would like to have the OPENBSD label under Puffy so people know what this
is, put it into google etc. But don't want the details, cause they sound
a bit like an advert.

I am glad that I can proudly put OpenBSD stickers on my stuff without feeling
like an infantile nerd, which would definitely happen with the Linux logo.

Personally, the feeling or message I am getting from these stickers is we're
not sloppy, we want to do everything well, including graphics design.
In marketing terms, it makes an impression that OpenBSD has a good
corporate identity (http://en.wikipedia.org/wiki/Corporate_identity).

CL



Strange system freeze...

2007-09-29 Thread Mayuresh Kathe
Hello,

I'm under OpenBSD 4.0 running on an AMD Sempron, dmesg at the end of this mail.

I'm getting strange system freezes quite regularly.
It typically occurs while I'm running Firefox (1.5.0.5), my window
manager is 'mwm'.

A while back these freezes used to occur even at the console, I
figured that they were because of lack of sufficient video memory so I
increased the video memory from 128MB to 256MB (shared from primary
RAM).
Things were quite OK for a while, but, today the system froze again,
under X, mwm and Firefox.

I'm unable to reproduce the freeze at will.

Is there something I could do to give you guys a better idea about
what's happening?

Best,

-- DMesg --

OpenBSD 4.0 (GENERIC) #1107: Sat Sep 16 19:15:58 MDT 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Sempron(tm) Processor 3000+ (AuthenticAMD 686-class, 256KB
L2 cache) 1.61 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,CX16
real mem  = 267743232 (261468K)
avail mem = 236478464 (230936K)
using 3293 buffers containing 13488128 bytes (13172K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 05/01/07, BIOS32 rev. 0 @
0xf0010, SMBIOS rev. 2.4 @ 0xf06f0 (49 entries)
bios0: ASUSTeK Computer INC. M2N-MX SE
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 3.0 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf7a40/256 (14 entries)
pcibios0: no compatible PCI ICU found: ICU vendor 0x10de product 0x03e0
pcibios0: PCI bus #4 is the last bus
bios0: ROM list: 0xc/0xee00 0xcf000/0x800
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
vendor NVIDIA, unknown product 0x03ea (class memory subclass RAM,
rev 0xa1) at pci0 dev 0 function 0 not configured
pcib0 at pci0 dev 1 function 0 NVIDIA MCP61 ISA rev 0xa2
nviic0 at pci0 dev 1 function 1 NVIDIA MCP61 SMBus rev 0xa2
iic0 at nviic0
iic1 at nviic0
vendor NVIDIA, unknown product 0x03f5 (class memory subclass RAM,
rev 0xa2) at pci0 dev 1 function 2 not configured
ohci0 at pci0 dev 2 function 0 vendor NVIDIA, unknown product 0x03f1
rev 0xa2: irq 11, version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: NVIDIA OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 8 ports with 8 removable, self powered
ehci0 at pci0 dev 2 function 1 vendor NVIDIA, unknown product 0x03f2
rev 0xa2: irq 10
usb1 at ehci0: USB revision 2.0
uhub1 at usb1
uhub1: NVIDIA EHCI root hub, rev 2.00/1.00, addr 1
uhub1: 8 ports with 8 removable, self powered
ppb0 at pci0 dev 4 function 0 vendor NVIDIA, unknown product 0x03f3 rev 0xa1
pci1 at ppb0 bus 1
xl0 at pci1 dev 6 function 0 3Com 3c905C 100Base-TX rev 0x74: irq
11, address 00:50:da:0d:c9:90
bmtphy0 at xl0 phy 24: Broadcom 3C905C internal PHY, rev. 6
azalia0 at pci0 dev 5 function 0 vendor NVIDIA, unknown product
0x03f0 rev 0xa2: irq 11
azalia0: host: High Definition Audio rev. 1.0
azalia0: codec: 0x04x/0x10ec (rev. 1.1), HDA version 1.0
audio0 at azalia0
pciide0 at pci0 dev 6 function 0 NVIDIA MCP61 IDE rev 0xa2: DMA,
channel 0 configured to compatibility, channel 1 configured to
compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: SONY, CD-RW CRX320EE, RYK4 SCSI0
5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 0
pciide0: channel 1 ignored (disabled)
nfe0 at pci0 dev 7 function 0 NVIDIA MCP61 LAN rev 0xa2: irq 11,
address bb:58:90:fc:1b:00
ukphy0 at nfe0 phy 1: Generic IEEE 802.3u media interface, rev. 1: OUI
0x001374, model 0x0002
pciide1 at pci0 dev 8 function 0 NVIDIA MCP61 SATA rev 0xa2: DMA
pciide1: using irq 15 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: ST380215AS
wd0: 16-sector PIO, LBA48, 76319MB, 156301488 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
ppb1 at pci0 dev 9 function 0 NVIDIA MCP61 PCIE rev 0xa2
pci2 at ppb1 bus 2
ppb2 at pci0 dev 11 function 0 NVIDIA MCP61 PCIE rev 0xa2
pci3 at ppb2 bus 3
ppb3 at pci0 dev 12 function 0 NVIDIA MCP61 PCIE rev 0xa2
pci4 at ppb3 bus 4
vga1 at pci0 dev 13 function 0 vendor NVIDIA, unknown product 0x03d0 rev 0xa2
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pchb0 at pci0 dev 24 function 0 AMD AMD64 HyperTransport rev 0x00
pchb1 at pci0 dev 24 function 1 AMD AMD64 Address Map rev 0x00
pchb2 at pci0 dev 24 function 2 AMD AMD64 DRAM Cfg rev 0x00
pchb3 at pci0 dev 24 function 3 AMD AMD64 Misc Cfg rev 0x00
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
it0 at isa0 port 0x290/8: IT87
npx0 at isa0 port 

Re: OpenBSD sticker considered cool by a layman

2007-09-29 Thread Otto Moerbeek
On Sat, 29 Sep 2007, Karel Kulhavy wrote:

 Personally, the feeling or message I am getting from these stickers is we're
 not sloppy, we want to do everything well, including graphics design.
 In marketing terms, it makes an impression that OpenBSD has a good
 corporate identity (http://en.wikipedia.org/wiki/Corporate_identity).

Speaking as an OpenBSD developer, I can assure you that OpenBSD would
become much less attractive to spend time on if it was run like a
company. I think what we produce (software and and other stuff) is
high quality because we like what we do. 

Having fun (yes, developing is a weird kind of fun for me) is
important to me. Take away the fun factor and OpenBSD falls apart. 

-Otto



Re: arc0: unable to query firmware for sensor info

2007-09-29 Thread stephan
 enable acpi so the interrupt routing in the MP case can be fixed up,
 broken MP BIOSes are sadly reasonably common now.

I'm not sure I get you, cause I did enable acpi which makes bsd.mp hang.

Stephan



Re: OpenNTPD not syncing anymore with recent i386 snaphots?

2007-09-29 Thread Martin Gignac
Hi Maurice,

 Can you check whether this is fixed when you add 'weight 1' to each
 server line in ntpd.conf?

Yup, that did it. :-)

 There were some changes in ntpd a couple of weeks ago (new correction
 keyword to compensate the offset of radio clocks and some changes in the
 parser) and the default weight of 1 was lost.  This leads to the
 problems you see.  But this was fixed on September 14, so recent
 snaphots should be OK.

I've just realized that although I installed from an install42.iso
that had a Sept. 24 timestamp on the ftp.openbsd.org site in actuality
the kernel is dated Sept. 13. I performed an new install on another VM
from the cd42.iso and then downloaded the packages via HTTP and this
time the kernel is dated Sept. 24 and OpenNTPD works without having to
add the 'weight 1' parameter.

So you were right about recent snapshots.

Thanks,
-Martin

-- 
Suburbia is where the developer bulldozes out the trees, then names
the streets after them.

   --Bill Vaughan



Re: OpenBSD sticker considered cool by a layman

2007-09-29 Thread Gregg Reynolds
On 9/29/07, Otto Moerbeek [EMAIL PROTECTED] wrote:
 On Sat, 29 Sep 2007, Karel Kulhavy wrote:

  Personally, the feeling or message I am getting from these stickers is 
  we're
  not sloppy, we want to do everything well, including graphics design.
  In marketing terms, it makes an impression that OpenBSD has a good
  corporate identity (http://en.wikipedia.org/wiki/Corporate_identity).

 Speaking as an OpenBSD developer, I can assure you that OpenBSD would
 become much less attractive to spend time on if it was run like a
 company. I think what we produce (software and and other stuff) is
 high quality because we like what we do.


good corporate identity != run like a corporation

The corporate in corporate identity should be taken literally.  Or
rather, the metaphor should be divested of any associations with
private, profit-seeking organizations.  A good corporate identity is
about clarity of message; there's no reason that message can't be what
OpenBSD is really about.

In my view OpenBSD has an excellent identity and message - clear,
narrow focus on a small and easily understandable set of concepts
(security by default, unencumbered, quality, etc.) and a variety of
well-designed and executed graphic images unified by a well-chosen
icon.  In fact the great virtue of that is that it obviates the need
for top-down discipline in getting the message out.  Anybody who wants
to evangelize the unwashed will have no problem figuring out what
message to convey.  No reason to fear that.

-g



Is install42.iso lagging behind cd42.iso and individual packages?

2007-09-29 Thread Martin Gignac
Hi,

Yesterday evening I downloaded the install42.iso, cd42.iso and all
*.tgz packages from the i386 snapshots directory on the
ftp.openbsd.org website. All files had a timestamp of Sept. 24. I then
ran them through MD5 to make sure they matched the expected checksum.

This morning I performed two OpenBSD installs on two VMware machines;
one using the install42.iso image and the included *.tgz packages, and
one using cd42.iso and the individual packages (which I made available
via a local HTTP server).

Once this was done I compared the dmesg output of both installs and
noticed that the install42.iso machine's kernel date is Sept. 13 while
the cd42.iso machine's kernel date is Sept. 24. A quick check of the
MD5s of the *.tgz packages in the install42.iso file show that they
are different from the packages on the FTP site?

So I'm just wondering: in the i386 snaphots directory, do the *.tgz
packages in the install42.iso file typically lag behind the
individual packages available on the FTP site? Is the way to get the
most recent binaries (from -CURRENT) of OpenBSD to use individual
packages and *not* the install42.iso?

Thanks,
-Martin



[Correction]:Is install42.iso lagging behind cd42.iso and individual *file sets*?

2007-09-29 Thread Martin Gignac
As someone kindly pointed out I was using the term packages when I
should have used file sets.

-Martin



Re: OpenBSD sticker considered cool by a layman

2007-09-29 Thread Greg Thomas
On 9/29/07, Karel Kulhavy [EMAIL PROTECTED] wrote:
 Some (cute) girl yesterday who doesn't understand computers at all pointed at
 my laptop and asked where did you get this damned cool sticker? It was the
 wireframe Puffy. People also tend to stare at Puffy when I use my laptop on
 the bus.


My experience is the same.  Any time I wear my wireframe Puffy shirt a
few people a day come up to me and get a closer look, same with the
laptop sticker when I have my laptop with me.

Greg
-- 
Ticketmaster and Ticketweb suck, but everyone knows that:
http://ticketmastersucks.org

Dethink to survive - Mclusky



Re: Java 1.5 issue - lazy binding

2007-09-29 Thread Stijn

Otto Moerbeek wrote:

On Fri, 28 Sep 2007, Stijn wrote:

  

Hi,

I've built Java 1.5 as explained on: 
http://openbsd.org/faq/faq13.html#javaplugin;

After the make install I created the symbolic link to use the Java-plugin in firefox. 
ln -s /usr/local/jdk-1.5.0/jre/plugin/i386/ns7/libjavaplugin_oji.so \ /home/stijn/.mozilla/plugins


After I start firefox and enter about:plugins, firefox becomes unresponsive. 

On my xterm console I get the error message: 
/usr/local/mozilla-firefox/firefox-bin:/usr/local/jdk-1.5.0/jre/plugin/i386/ns7/libjavaplugin_oji.so: undefined symbol '__cxa_atexit' lazy binding failed!


When I remove the symbolic link firefox works fine. Entering about:plugins 
returns information about installed plugins.

Anybody knows how to fix this? I have no idea what the lazy binding means.



Check http://www.openbsd.org/faq/current.html#20070903

Probably firefox was compiled before the change, while the plugin
after, or something like that. 


-Otto
  

Hi,

I did the following to solve this issue:
-upgraded to the latest snapshot (24 Sept)
-updated ports tree
-upgraded packages (pkg_add -vi)
-rebuilt jdk 1.5
-installed jre 1.5 package

Firefox displays the about:plugins without freezing now.

Thanks Otto for the pointer.

BR,
Stijn



Re: Is install42.iso lagging behind cd42.iso and individual packages?

2007-09-29 Thread Adriaan
On 9/29/07, Martin Gignac [EMAIL PROTECTED] wrote:
 Hi,

 Yesterday evening I downloaded the install42.iso, cd42.iso and all
 *.tgz packages from the i386 snapshots directory on the
 ftp.openbsd.org website. All files had a timestamp of Sept. 24. I then
 ran them through MD5 to make sure they matched the expected checksum.

 This morning I performed two OpenBSD installs on two VMware machines;
 one using the install42.iso image and the included *.tgz packages, and
 one using cd42.iso and the individual packages (which I made available
 via a local HTTP server).

 Once this was done I compared the dmesg output of both installs and
 noticed that the install42.iso machine's kernel date is Sept. 13 while
 the cd42.iso machine's kernel date is Sept. 24. A quick check of the
 MD5s of the *.tgz packages in the install42.iso file show that they
 are different from the packages on the FTP site?

 So I'm just wondering: in the i386 snaphots directory, do the *.tgz
 packages in the install42.iso file typically lag behind the
 individual packages available on the FTP site? Is the way to get the
 most recent binaries (from -CURRENT) of OpenBSD to use individual
 packages and *not* the install42.iso?

For the installation file sets you can use the download script from
http://www.bsdforums.org/forums/showthread.php?s=threadid=22727

Besides using these sets to create your own ISO you alternatively can use
them in the environment friendly USB-mediazine method as described in
http://www.bsdforums.org/forums/showthread.php?t=50433

=Adriaan=



To whom can I direct email for artwork use permission pls?

2007-09-29 Thread Tito Mari Francis EscaƱo
I plan to prepare and produce a DVD version of 4.2 when available this
November, complete with the packages, and I'd like to use some
artworks as graphics, if not a basis for a custom-made one, for the
DVD. Therefore, may I pls know to whom can I direct email to ask for
permission to use them?
IIRC, there was once a thread here with heated exchange of words over
usage of those artworks without due permission.
I'm from the Philippines and high-speed internet access here is not
yet common, so a DVD distribution would be a nice option and I hope to
produce it.
I look forward to a prompt reply. Thank you.

Respectfully yours,
Tito Mari Francis H. Escaqo
Computer Engineer and Free Software Proponent
Philippines



Re: Is install42.iso lagging behind cd42.iso and individual packages?

2007-09-29 Thread Martin Gignac
 For the installation file sets you can use the download script from
 http://www.bsdforums.org/forums/showthread.php?s=threadid=22727

 Besides using these sets to create your own ISO you alternatively can use
 them in the environment friendly USB-mediazine method as described in
 http://www.bsdforums.org/forums/showthread.php?t=50433

Thanks for the tip.

By the way, I found this in the misc@ archives:

--- SNIP ---

Adriaan wrote:
 A md5 -c MD5 fails for install42.iso

Thats' an experimental feature, not necessarily kept in sync
with the rest of the build process at the moment, and thus,
the MD5 files may very well not match.

Nick.

--- SNIP ---

I take it that for the time being install42.iso is not necessarily
generated automatically right after a new snapshot build. That would
explain why the file sets in the ISO file are older than the ones on
the FTP site. The only thing that threw me off was that the timestamp
for all files in the snapshot directory, including install42.iso,
where the same. That's why I assumed it was a new (and up-to-date
version). I guess everything is just copied over to the FTP site after
a build, regardless of it was actually updated or not.

-Martin



Re: 19 inch rack (DEC-StoageWorks) available in Munich

2007-09-29 Thread Robert Urban
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hallo Martin,

Martin Reindl wrote:
 Robert Urban [EMAIL PROTECTED] wrote:
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hi Folks,

 is anybody interested in a SWXSC-CB 19 StorageWorks rack? I'm giving it
 away.  For more info, see:

 http://www.spielwiese.de/rob/Stuff/Cabinet/

 
 Would you mind giving the RZ28 disks to the project?

indeed.  I guess no one wants the rack?  see below for a list of disks
available for donation.

 sturm@ and grunk@ are probably real close :)

I've got a move looming, so I'd like to get any transactions completed
relatively quickly.

cheers,

Robert Urban
- snip--

The following SCSI disks are all in StorageWorks Building Block (SBB)
enclosuers:
Cap   Model count comment
- - --- -
1GB   RZ26L-VA  8
RZ26-VA   1   
2BG   RZ28-VA   16  
SWXD3-SG  5   
4GB   RZ29B-VW  3   
DS-RZ1CB-VW   4   
9GB   DS-RZ1DF-VW   2   
DS-RZ1DD-VW   3   

Other SCSI (no enclosure) 
9GB   IBM/Digital RZ1DF-CB (DGHS)   2   SCA
9GB   Quantum/Digital RZ2DC-KA  2   68pin
2GB   RZ28-E3   
2GB   Seagate ST32550W  1   68pin
2GB   Micropolis 4421   1   50pin
1GB   RZ26L-E   4   
2GB   Seagate/Digital RZ23B-E (ST12400N)1   
1GB   Digital DSP3107L (RH31E-DC)   1   
425MB Digital RZ25-E1   

IDE/ATAPI Disks   
3.2GB Maxtor DiamondMax 4   
3.2GB Quantum Fireball  1   
850MB Quantum Trailblazer   1   
1.2GB Quantum Fireball  3   
540MB Maxtor 7540AV 1   
127MB Quantum ProDrive  4   
850MB Western Digital Caviar 2850   1   
170MB Maxtor 7171AT 1
130MB Seagate ST3145A   1
122MB Digital RE23L-E   1


StorageWorks enclosuers:  
BA350 6   
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFG/plV33x7lJjLFm4RAh1/AKCgtLiAKAF7/P0MFvWAiHLfmbhA7wCcDyuv
IT5WRp54jt8JGDuq0D6qMN8=
=HCdP
-END PGP SIGNATURE-



Re: files in root directory

2007-09-29 Thread Paul de Weerd
On Fri, Sep 28, 2007 at 09:48:08PM -0400, Chris Nolan wrote:
| Hello, I read through the FAQ and searched the archives but couldn't find an
| answer to this question. In /src/distrib/sets/lists/etc/mi, why does openbsd
| include the .cshrc and .profile files in the root directory?

If you log in but you're homedir is unavailable (not mounted (nfs ?))
you'll get logged in with CWD in /. You'll then also get the /.profile
or the /.cshrc as appropriate to your shell.

Cheers,

Paul 'WEiRD' de Weerd

-- 
[++-]+++.+++[---].+++[+
+++-].++[-]+.--.[-]
 http://www.weirdnet.nl/ 



Re: files in root directory

2007-09-29 Thread Ingo Schwarze
Hi Paul, hi Chris,

Paul de Weerd wrote on Sat, Sep 29, 2007 at 10:01:28PM +0200:
 On Fri, Sep 28, 2007 at 09:48:08PM -0400, Chris Nolan wrote:

 Hello, I read through the FAQ and searched the archives but couldn't
 find an answer to this question.  In /src/distrib/sets/lists/etc/mi,
 why does openbsd include the .cshrc and .profile files in the root
 directory?

 If you log in but you're homedir is unavailable (not mounted (nfs ?))
 you'll get logged in with CWD in /. You'll then also get the /.profile
 or the /.cshrc as appropriate to your shell.

That's what i might have suspected, too, but it does not appear to be
true.  When your home directory is unavailable, your $PWD will indeed
be / after logging in, but your $HOME is still what is defined in
the passwd(5) file, and /.profile does not appear to be sourced.
Look here:


[EMAIL PROTECTED] # echo 'export TESTVAR=testvalue'  /.profile
[EMAIL PROTECTED] # ls -al /.profile /etc/profile
ls: /etc/profile: No such file or directory
-rw-r--r--  1 root  wheel  27 Sep 29 22:50 /.profile

[EMAIL PROTECTED] # umount /home
[EMAIL PROTECTED] # ls -a /home
.  ..

[EMAIL PROTECTED] $ ssh athene
[EMAIL PROTECTED]'s password: 
OpenBSD 4.2-current (GENERIC) #60: Wed Sep 26 20:43:39 CEST 2007

Could not chdir to home directory /home/schwarze: No such file or directory
$ echo $SHELL
/bin/sh
$ echo $HOME
/home/schwarze
$ pwd
/
$ echo TESTVAR = '$TESTVAR'
TESTVAR = ''


This behaviour conforms to sh(1) and ksh(1):

:: -l Login shell.  If the basename the shell is called with (i.e.
::argv[0]) starts with `-' or if this option is used, the shell is
::assumed to be a login shell and the shell reads and executes the
::contents of /etc/profile and $HOME/.profile if they exist and are
::readable.

Nothing about $PWD/.profile round here...

For csh(1), things look similar.

See login(1), ssh(1) and /usr/src/usr.bin/ssh/session.c to learn how
login and ssh are setting $HOME.

Yours,
  Ingo



Extracting images from camera and providing same filename for USB printers

2007-09-29 Thread Antti Harri

Hi,

the rather long subject line says it all so here is an 'attach'
script for the OpenBSD's hotplug daemon. I hope you enjoy!

http://users.openbsd.fi/iku/files/opensource/hotplug-1.1.tar.gz

See the README and the script's header part for more details.

PS. I'd appreciate feedback (AND patches! :-) )

--
Antti Harri