6417547 poolbind -e doesn't work with command contains slash
authorGangadhar Mylapuram <Gangadhar.M@Sun.COM>
Tue, 06 Apr 2010 23:31:14 -0700
changeset 12086 d9562b318e63
parent 12085 168b548e9c9a
child 12087 0e8c10460a8b
6417547 poolbind -e doesn't work with command contains slash
usr/src/cmd/pools/poolbind/poolbind.c
--- a/usr/src/cmd/pools/poolbind/poolbind.c	Tue Apr 06 13:25:11 2010 -0600
+++ b/usr/src/cmd/pools/poolbind/poolbind.c	Tue Apr 06 23:31:14 2010 -0700
@@ -2,9 +2,8 @@
  * CDDL HEADER START
  *
  * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
  *
  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  * or http://www.opensolaris.org/os/licensing.
@@ -20,12 +19,9 @@
  * CDDL HEADER END
  */
 /*
- * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
  */
 
-#pragma ident	"%Z%%M%	%I%	%E% SMI"
-
 /*
  * poolbind - bind processes, tasks, and projects to pools, and query process
  * pool bindings
@@ -198,7 +194,7 @@
 		return;
 	}
 
-	if (execvp(basename(argv[0]), argv) == -1)
+	if (execvp(argv[0], argv) == -1)
 		die(gettext("exec of %s failed"), argv[0]);
 	/*NOTREACHED*/
 }