a6539fb6bd
- don't hardcode -lossaudio in Makefiles, teach configure about it instead - different PLIST
34 lines
1.1 KiB
Text
34 lines
1.1 KiB
Text
$NetBSD: patch-as,v 1.7 1999/12/06 20:44:59 bouyer Exp $
|
|
|
|
--- ./kfm/kioslave/main.cpp.old Thu Apr 8 00:56:48 1999
|
|
+++ ./kfm/kioslave/main.cpp Fri Dec 3 17:25:19 1999
|
|
@@ -319,7 +319,7 @@
|
|
return;
|
|
}
|
|
|
|
-void KIOSlave::unmount( const char *_point )
|
|
+void KIOSlave::unmount( const char *_dev )
|
|
{
|
|
char buffer[ 1024 ];
|
|
int t = (int)time( 0L );
|
|
@@ -331,7 +331,7 @@
|
|
char *res;
|
|
|
|
if( volmgt_running() ) {
|
|
- if( (res = volmgt_symname( (char *) _point )) == NULL ) {
|
|
+ if( (res = volmgt_symname( (char *) _dev )) == NULL ) {
|
|
retvalue = 1;
|
|
err = QString( strerror( errno ));
|
|
} else {
|
|
@@ -352,8 +352,10 @@
|
|
err = QString( "Volume Management is not running." );
|
|
}
|
|
#else
|
|
- sprintf( buffer, "umount %s 2>"_PATH_TMP"mnt%i", _point, t );
|
|
+ sprintf( buffer, "umount %s 2>"_PATH_TMP"mnt%i", _dev, t );
|
|
retvalue = system( buffer );
|
|
+ sprintf( buffer, "eject %s", _dev);
|
|
+ system( buffer );
|
|
|
|
// test logfile here to remove it if it exists
|
|
// (if there is a warning, it can exist even if revalue==0)
|