@@ -214,44 +214,46 @@ where
214
214
215
215
#[ op2( fast, stack_trace) ]
216
216
pub fn op_geteuid < P > (
217
- state : & mut OpState ,
217
+ _state : & mut OpState ,
218
218
) -> Result < u32 , deno_core:: error:: AnyError >
219
219
where
220
220
P : NodePermissions + ' static ,
221
221
{
222
- {
223
- let permissions = state. borrow_mut :: < P > ( ) ;
224
- permissions. check_sys ( "uid" , "node:os.geteuid()" ) ?;
225
- }
222
+ // {
223
+ // let permissions = state.borrow_mut::<P>();
224
+ // permissions.check_sys("uid", "node:os.geteuid()")?;
225
+ // }
226
226
227
- #[ cfg( windows) ]
228
- let euid = 0 ;
229
- #[ cfg( unix) ]
230
- // SAFETY: Call to libc geteuid.
231
- let euid = unsafe { libc:: geteuid ( ) } ;
227
+ // #[cfg(windows)]
228
+ // let euid = 0;
229
+ // #[cfg(unix)]
230
+ // // SAFETY: Call to libc geteuid.
231
+ // let euid = unsafe { libc::geteuid() };
232
232
233
- Ok ( euid)
233
+ // Ok(euid)
234
+ Ok ( 0 )
234
235
}
235
236
236
237
#[ op2( fast, stack_trace) ]
237
238
pub fn op_getegid < P > (
238
- state : & mut OpState ,
239
+ _state : & mut OpState ,
239
240
) -> Result < u32 , deno_core:: error:: AnyError >
240
241
where
241
242
P : NodePermissions + ' static ,
242
243
{
243
- {
244
- let permissions = state. borrow_mut :: < P > ( ) ;
245
- permissions. check_sys ( "getegid" , "node:os.getegid()" ) ?;
246
- }
244
+ // {
245
+ // let permissions = state.borrow_mut::<P>();
246
+ // permissions.check_sys("getegid", "node:os.getegid()")?;
247
+ // }
247
248
248
- #[ cfg( windows) ]
249
- let egid = 0 ;
250
- #[ cfg( unix) ]
251
- // SAFETY: Call to libc getegid.
252
- let egid = unsafe { libc:: getegid ( ) } ;
249
+ // #[cfg(windows)]
250
+ // let egid = 0;
251
+ // #[cfg(unix)]
252
+ // // SAFETY: Call to libc getegid.
253
+ // let egid = unsafe { libc::getegid() };
253
254
254
- Ok ( egid)
255
+ // Ok(egid)
256
+ Ok ( 0 )
255
257
}
256
258
257
259
#[ op2( stack_trace) ]
0 commit comments