summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-03-26 11:45:28 +0100
committerGünther Deschner <gd@samba.org>2008-03-26 12:17:17 +0100
commitf4e1e23e2fb1239036e9035fdf26ac694fbd0b0b (patch)
tree20e270a6ecf444e0da938545f65b09e87e320918
parent300cd87ce18fd1560d34b0ecae920312cba6ba83 (diff)
downloadsamba-f4e1e23e2fb1239036e9035fdf26ac694fbd0b0b.tar.gz
samba-f4e1e23e2fb1239036e9035fdf26ac694fbd0b0b.tar.bz2
samba-f4e1e23e2fb1239036e9035fdf26ac694fbd0b0b.zip
Strip whitespace in ntsvcs rpc server.
Guenther (This used to be commit 0c7af8bc136f45484eab3c36b761046f88653b93)
-rw-r--r--source3/rpc_server/srv_ntsvcs_nt.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/source3/rpc_server/srv_ntsvcs_nt.c b/source3/rpc_server/srv_ntsvcs_nt.c
index 11ea5d0cd1..268da52896 100644
--- a/source3/rpc_server/srv_ntsvcs_nt.c
+++ b/source3/rpc_server/srv_ntsvcs_nt.c
@@ -1,19 +1,19 @@
-/*
+/*
* Unix SMB/CIFS implementation.
* RPC Pipe client / server routines
*
* Copyright (C) Gerald (Jerry) Carter 2005.
- *
+ *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
@@ -106,24 +106,24 @@ WERROR _ntsvcs_get_device_reg_property( pipes_struct *p, NTSVCS_Q_GET_DEVICE_REG
switch( q_u->property ) {
case DEV_REGPROP_DESC:
- /* just parse the service name from the device path and then
+ /* just parse the service name from the device path and then
lookup the display name */
if ( !(ptr = strrchr_m( devicepath, '\\' )) )
- return WERR_GENERAL_FAILURE;
+ return WERR_GENERAL_FAILURE;
*ptr = '\0';
-
+
if ( !(ptr = strrchr_m( devicepath, '_' )) )
- return WERR_GENERAL_FAILURE;
+ return WERR_GENERAL_FAILURE;
ptr++;
-
+
if ( !(values = svcctl_fetch_regvalues( ptr, p->pipe_user.nt_user_token )) )
- return WERR_GENERAL_FAILURE;
-
+ return WERR_GENERAL_FAILURE;
+
if ( !(val = regval_ctr_getvalue( values, "DisplayName" )) ) {
TALLOC_FREE( values );
return WERR_GENERAL_FAILURE;
}
-
+
r_u->unknown1 = 0x1; /* always 1...tested using a remove device manager connection */
r_u->size = reg_init_regval_buffer( &r_u->value, val );
r_u->needed = r_u->size;
@@ -131,7 +131,7 @@ WERROR _ntsvcs_get_device_reg_property( pipes_struct *p, NTSVCS_Q_GET_DEVICE_REG
TALLOC_FREE(values);
break;
-
+
default:
r_u->unknown1 = 0x00437c98;
return WERR_CM_NO_SUCH_VALUE;