summaryrefslogtreecommitdiff
authorkergoth <kergoth>2003-03-14 19:35:48 (UTC)
committer kergoth <kergoth>2003-03-14 19:35:48 (UTC)
commit2d20b81186bd9a4795af736710d0cb205ead9a77 (patch) (unidiff)
treebc0560151016cccc0a6c4234d7af3e33eaac63c8
parent4f483f13e3c624a0ce6161e6ddd6923b4d101f0e (diff)
downloadopie-2d20b81186bd9a4795af736710d0cb205ead9a77.zip
opie-2d20b81186bd9a4795af736710d0cb205ead9a77.tar.gz
opie-2d20b81186bd9a4795af736710d0cb205ead9a77.tar.bz2
Syntax correction
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/desktop.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/launcher/desktop.cpp b/core/launcher/desktop.cpp
index 4c239a6..5ecc8bf 100644
--- a/core/launcher/desktop.cpp
+++ b/core/launcher/desktop.cpp
@@ -741,5 +741,5 @@ void DesktopApplication::shutdown()
741void DesktopApplication::shutdown( ShutdownImpl::Type t ) 741void DesktopApplication::shutdown( ShutdownImpl::Type t )
742{ 742{
743 743 char *path[] = { "/sbin", "/usr/sbin", 0 };
744 char *opt = 0; 744 char *opt = 0;
745 745
@@ -752,5 +752,5 @@ void DesktopApplication::shutdown( ShutdownImpl::Type t )
752 opt = "-r"; 752 opt = "-r";
753 753
754 if ( execle( "shutdown", "shutdown", opt, "now", ( void* ) 0, "/sbin", "/usr/sbin", ( void* ) 0 ) < 0 ) 754 if ( execle( "shutdown", "shutdown", opt, "now", ( void* ) 0, path ) < 0 )
755 ::syslog ( LOG_ERR, "Erroring execing shutdown\n" ); 755 ::syslog ( LOG_ERR, "Erroring execing shutdown\n" );
756 756