Archive for February, 2009

C importance.

During last months I had experience in C teaching. Many students told me that C is not important : in their opinion it is obsolete, useless, less attractive than other object oriented languages (someone included VisualBasic 6 also :-)). Well this morning my Linux Box alerted me with new updates included security option for “sudo” command. I gave a look to the description of the problem and this is the code updated (if you have some C basics you shoudn’t have difficutl in reading and understanding it) :

static int command_matches_dir __P((char *, size_t));
@@ -651,9 +651,11 @@ usergr_matches(group, user, pw)
      * If the user has a supplementary group vector, check it first.
-    for (i = 0; i < user_ngroups; i++) {
-	if (grp->gr_gid == user_groups[i])
-	    return(TRUE);
+    if (strcmp(user, user_name) == 0) {
+	for (i = 0; i < user_ngroups; i++) {
+	    if (grp->gr_gid == user_groups[i])
+		return(TRUE);
+	}
     if (grp->gr_mem != NULL) {

 	for (cur = grp->gr_mem; *cur; cur++) {

Now I ask : is it the C language really useless?


18 February 2009 at 9:58 am 3 comments

CMax Bug?

I’m very happy with my CMax. She’s almost two years old, but it feels like new, both in performance and in aspect.

This winter is very rainy round where I live, so I need often to use windshield wiper. It happens then that when I’m parking, at the moment that I use the reverse gear the posterior wiper take up office automatically!!!

Very strange….. 🙂

13 February 2009 at 11:11 am 2 comments

Recent Posts

Visitors to this site

Top Clicks

  • None