unoapploader.c (ca3b41fa) | unoapploader.c (a2264196) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 206 unchanged lines hidden (view full) --- 215 envstr = (char*) malloc( size ); 216 strcpy( envstr, "PATH=" ); 217 if ( value != NULL ) { 218 strcat( envstr, value); 219 strcat( envstr, PATHSEPARATOR); 220 } 221 strcat( envstr, "/usr/local/bin" ); /* We are adding at the end */ 222 putenv( envstr ); | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 206 unchanged lines hidden (view full) --- 215 envstr = (char*) malloc( size ); 216 strcpy( envstr, "PATH=" ); 217 if ( value != NULL ) { 218 strcat( envstr, value); 219 strcat( envstr, PATHSEPARATOR); 220 } 221 strcat( envstr, "/usr/local/bin" ); /* We are adding at the end */ 222 putenv( envstr ); |
223 224 /* https://bz.apache.org/ooo/show_bug.cgi?id=127966 */ 225 value = getenv ( "HOME" ); 226 if ( value && *value ) { 227 chdir ( value ); 228 } else { 229 chdir ( "/tmp" ); 230 } |
|
223#endif 224 } 225 else 226 { 227 fprintf( stderr, "Warning: no office installation found!\n" ); 228 fflush( stderr ); 229 } 230 --- 91 unchanged lines hidden --- | 231#endif 232 } 233 else 234 { 235 fprintf( stderr, "Warning: no office installation found!\n" ); 236 fflush( stderr ); 237 } 238 --- 91 unchanged lines hidden --- |